import { HvigorNode } from "@ohos/hvigor";
import path from "node:path";
export const project_dir = `C:\\Users\\dh357\\5i5j\\5i5jharmony`
export const img_resource_path = 'src/main/resources/base/media'
//const project_dir = '/Users/mac/Desktop/5i5jharmony'

export class TaskConfig {
    projectDir: string
    imageSubPath: string = 'src/main/resources/base/media'
    excludeModule: string[] = []
    constructor(projectDir: string) {
        this.projectDir = projectDir
    }
}

export function defaultConfig(): TaskConfig {
    let taskConfig = new TaskConfig(project_dir)
    return taskConfig
}

export function normalTaskConfig(node: HvigorNode): TaskConfig {
    let dir = path.resolve(node.getNodePath())
    return new TaskConfig(dir)
}